<?php

//sum 60 detik cari varian y1

$sql = "SELECT COUNT(sesi) FROM median where sesi='$carisesi'"; 
$rs_result = mysql_query($sql); 
$row = mysql_fetch_row($rs_result); 
$total_records = $row[0]; 
$i2=0;


$batas=60;
$menu2 = array();

$sql = "SELECT * FROM median where sesi='$carisesi' LIMIT $i2,$batas"; 
$rs_result = mysql_query ($sql); 

while( $rows = mysql_fetch_row($rs_result) ){
    

			 $menu2[] = $rows[2];
			
			
				}

echo sum($menu2);
echo '<br>';
